From: Ken Raeburn Date: Fri, 19 Jul 2002 14:26:49 +0000 (+0000) Subject: (Fcall_process): Make NEW_ARGV array hold pointer to X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~31508 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=405f73de1ddcae048b68e7aba97eef48ed98314f;p=emacs.git (Fcall_process): Make NEW_ARGV array hold pointer to const. --- diff --git a/src/callproc.c b/src/callproc.c index 68c4306b9ca..9b1e04ada82 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -222,8 +222,8 @@ usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */) int bufsize = 16384; int count = SPECPDL_INDEX (); - register unsigned char **new_argv - = (unsigned char **) alloca ((max (2, nargs - 2)) * sizeof (char *)); + register const unsigned char **new_argv + = (const unsigned char **) alloca ((max (2, nargs - 2)) * sizeof (char *)); struct buffer *old = current_buffer; /* File to use for stderr in the child. t means use same as standard output. */